<template>
	<view>
		<view class="header">
			<view v-if="no">
				<view>您未登录</view>
				<navigator url="register/register"><button>注册</button></navigator>
				<navigator url="login/login"><button url="login/login">登录</button></navigator>
			</view>
		</view>
		<!-- <navigator url="register/register">注册</navigator>
		<navigator url="login/login">登录</navigator>
		<navigator url="cardlist/cardlist">购物车</navigator>
		<navigator url="address/address">地址</navigator>
		<navigator url="address/newaddress">新增地址</navigator> -->
		<view class="center">
			<navigator url="list/list">
			<view class="c1">我的订单</view>
			</navigator>
			<view class="c2">></view>
			<view class="c3">
				<view class="c31"><image src="../../static/icons/icon-pay.png"></image></view>
				<view class="c32">待付款</view>
			</view>
			<view class="c3">
				<view class="c31"><image src="../../static/icons/pay-done.png"></image></view>
				<view class="c32">已付款</view>
			</view>
			<view class="c3">
				<view class="c31"><image src="../../static/icons/icon-car.png"></image></view>
				<view class="c32">待收获</view>
			</view>
			<view class="c3">
				<view class="c31"><image src="../../static/icons/icon-done.png"></image></view>
				<view class="c32">以收货</view>
			</view>
			<view class="c3">
				<view class="c31"><image src="../../static/icons/icon-back.png"></image></view>
				<view class="c32">售后</view>
			</view>
		</view>
		<view class="center2">
			<view class="c">
			  <view class="c4"><image src="../../static/icons/save.png"></image></view>
			  <view class="c5">收藏</view>
			</view>
			<view class="c">
			  <view class="c4"><image src="../../static/icons/brand.png"></image></view>
			  <view class="c5">品牌</view>
			</view>
			<view class="c">
			  <view class="c4"><image src="../../static/icons/article.png"></image></view>
			  <view class="c5">文章</view>
			</view>
			<view class="c">
			  <navigator url="address/address">
			  <view class="c4"><image src="../../static/icons/address.png"></image></view>
			  <view class="c5">地址</view>
			  </navigator>
			</view>
			<view class="c">
			  <view class="c4"><image src="../../static/icons/card.png"></image></view>
			  <view class="c5">卡包</view>
			</view>
			<view class="c">
			  <view class="c4"><image src="../../static/icons/kf.png"></image></view>
			  <view class="c5">客服</view>
			</view>
			<view class="c">
			  <view class="c4"><image src="../../static/icons/security.png"></image></view>
			  <view class="c5">安全</view>
			</view>
			<view class="c">
			  <view class="c4"><image src="../../static/icons/about.png"></image></view>
			  <view class="c5">关于</view>
			</view>
			<view class="c">
			  <navigator url="cardlist/cardlist">
			  <view class="c4"><image src="../../static/icons/cart2.png"></image></view>
			  <view class="c5">购物车</view>
			  </navigator>
			</view>
		</view>
		<navigator class="t" url="login/loginout">退出登录</navigator>
	</view>
</template>

<script>
	import {doLogin} from "../../util/user/user.js"
	export default {
		
		data() {
			return {
				isShow:false,
				no:true
			}
		},
	
		onShow() {
			if(uni.getStorageSync('userInfo')){
				// this.isShow = true
				// uni.getStorageSync()
				this.no = false
			} else {
				this.no = true;
			}
			console.log(this.no);
			console.log('11111')
		}
	}
</script>

<style>
	.center{
		width: 720rpx;
		height: 240rpx;
		background-color: white;
		margin: 20rpx auto;
		position: relative;
	}
	.c1{
		margin-left: 30rpx;
	}
	.c2{
		position: absolute;
		top: 0;
		left: 650rpx;
	}
	.c3{
		float: left;
		width: 20%;
		text-align: center;
		margin-top: 50rpx;
	}
	.c31 image{
		width: 80rpx;
		height: 80rpx;
	}
	.center2{
		width: 720rpx;
		height: 800rpx;
		background-color: white;
		margin: 60rpx auto;
	}
	.c{
		float: left;
		width: 33%;
		height: 33%;
		text-align: center;
	}
	.c4{
		margin-top: 100rpx;
	}
	.c4 image{
		width: 80rpx;
		height: 80rpx;
	}
    .t{
		width: 400rpx;
		height: 100rpx;
		background-color: #354E44;
		color: white;
		margin: 60rpx auto;
		text-align: center;
		line-height: 100rpx;
		
	}
</style>
